]> dgit.raspbian.org Git - gnome-shell.git/commit
Refactor show()/hide() sequences
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 16 Mar 2012 22:53:14 +0000 (18:53 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 2 May 2012 16:43:58 +0000 (12:43 -0400)
commit723a1c843a9d573fdd94403c08d4b72c2dac19b1
treeda35f2b3c929421cb3648fc6f5c35bb523cb0959
parente333263fd646cee7b235e181db7dd96a6bf0735e
Refactor show()/hide() sequences

We seem to have a lot of code that does something along the lines of:

    if (condition)
        actor.show();
    else
        actor.hide();

ClutterActor already has such a thing for exactly this purpose: the 'visible'
property. Use it instead of the mess above.

https://bugzilla.gnome.org/show_bug.cgi?id=672272
js/gdm/powerMenu.js
js/ui/magnifier.js
js/ui/status/bluetooth.js
js/ui/status/network.js
js/ui/status/volume.js
js/ui/userMenu.js
js/ui/workspacesView.js